home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Aminet 4
/
Aminet 4 - November 1994.iso
/
aminet
/
comm
/
net
/
dnet_src.lha
/
dnet
/
amiga
/
lib
/
dioctl.c
< prev
next >
Wrap
C/C++ Source or Header
|
1989-11-05
|
464b
|
28 lines
/*
* DIoctl.C
*/
#include "lib.h"
void
DIoctl(_chan, cmd, val, aux)
void *_chan;
ubyte cmd;
uword val;
ubyte aux;
{
CHANN *chan = (CHANN *)_chan;
IOSTD ior;
ior.io_Command = DNCMD_IOCTL;
ior.io_Unit = (void *)chan->chan;
ior.io_Offset = (long)chan;
ior.io_Message.mn_ReplyPort = (PORT *)chan;
ior.io_Data = (APTR)(long)((val<<16)|(aux<<8)|cmd);
PutMsg(chan->dnetport, (MSG *)&ior);
WaitMsg(&ior);
FixSignal(chan);
}